if (typeof (model) == 'undefined')
	model = {}
if (typeof (model.studying) == 'undefined')
	model.studying = {}

if (typeof (model.studying.factory) == 'undefined')
	model.studying.factory = {}

function Studying(options) {
	var settings = $.extend({
		studying : {}
	}, options || {});
	
	var self = this;
	
	self.id = ko.observable(settings.studying.id);	
	self.person = ko.observable(settings.studying.person);
	self.course = ko.observable(settings.studying.course);
	self.redirectToStudied = function(){
		window.location.href = 'course/studied.action?cid=' + self.id();
	}
	
	return this;
}



model.studying.factory.create = function(options) {
	return new Studying(options)
};

